﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace JX.Core.Entity
{
	/// <summary>
	/// 节点设置信息
	/// </summary>
	[XmlRoot("NodeSettingInfo", Namespace = "http://www.jiexiang.net", IsNullable = false)]
	public class NodeSettingInfo
	{
		/// <summary>
		/// 构造
		/// </summary>
		public NodeSettingInfo()
		{
		}
		/// <summary>
		/// 可空构造:是否生成一个空对象
		/// </summary>
		/// <param name="value"></param>
		public NodeSettingInfo(bool value)
		{
			this.m_IsNull = value;
		}

		private bool m_IsNull;
		/// <summary>
		/// 对象是否为空
		/// </summary>
		public bool IsNull
		{
			get
			{
				return this.m_IsNull;
			}
		}

		private int m_AutoUpdatePages;
		/// <summary>
		/// 
		/// </summary>
		public int AutoUpdatePages
		{
			get
			{
				return this.m_AutoUpdatePages;
			}
			set
			{
				this.m_AutoUpdatePages = value;
			}
		}

		private bool m_IsSetCache;
		/// <summary>
		/// 动态页是否缓存
		/// </summary>
		public bool IsSetCache
		{
			get
			{
				return this.m_IsSetCache;
			}
			set
			{
				this.m_IsSetCache = value;
			}
		}

		private int m_CacheTime;
		/// <summary>
		/// 动态页缓存时间
		/// </summary>
		public int CacheTime
		{
			get
			{
				return this.m_CacheTime;
			}
			set
			{
				this.m_CacheTime = value;
			}
		}

		private int m_Point;
		/// <summary>
		/// 金币奖励：会员在此栏目发表信息时可以得到的金币数
		/// </summary>
		public int Point
		{
			get
			{
				return this.m_Point;
			}
			set
			{
				this.m_Point = value;
			}
		}

		private int m_PresentExp;
		/// <summary>
		/// 积分奖励：会员在此栏目发表信息时可以得到的积分
		/// </summary>
		public int PresentExp
		{
			get
			{
				return this.m_PresentExp;
			}
			set
			{
				this.m_PresentExp = value;
			}
		}

		private int m_DefaultItemPoint;
		/// <summary>
		/// 默认子项浏览收费点数
		/// </summary>
		public int DefaultItemPoint
		{
			get
			{
				return this.m_DefaultItemPoint;
			}
			set
			{
				this.m_DefaultItemPoint = value;
			}
		}

		private int m_DefaultItemChargeType;
		/// <summary>
		/// 默认重复收费类型：0：不重复收费；1：距离上次收费时间0小时后重新收费；2：会员重复阅读此文章0次后重新收费；3：上述两者都满足时重新收费；4：上述两者任一个满足时就重新收费；5：每阅读一次就重复收费一次；
		/// </summary>
		public int DefaultItemChargeType
		{
			get
			{
				return this.m_DefaultItemChargeType;
			}
			set
			{
				this.m_DefaultItemChargeType = value;
			}
		}

		private int m_DefaultItemPitchTime;
		/// <summary>
		/// 默认重复收费小时数
		/// </summary>
		public int DefaultItemPitchTime
		{
			get
			{
				return this.m_DefaultItemPitchTime;
			}
			set
			{
				this.m_DefaultItemPitchTime = value;
			}
		}

		private int m_DefaultItemReadTimes;
		/// <summary>
		/// 重复收费查看次数
		/// </summary>
		public int DefaultItemReadTimes
		{
			get
			{
				return this.m_DefaultItemReadTimes;
			}
			set
			{
				this.m_DefaultItemReadTimes = value;
			}
		}

		private int m_DefaultItemDividePercent;
		/// <summary>
		/// 默认子项分成比例
		/// </summary>
		public int DefaultItemDividePercent
		{
			get
			{
				return this.m_DefaultItemDividePercent;
			}
			set
			{
				this.m_DefaultItemDividePercent = value;
			}
		}

		private bool m_EnableAddWhenHasChild;
		/// <summary>
		/// 有子节点时是否还允许在其下添加内容
		/// </summary>
		public bool EnableAddWhenHasChild
		{
			get
			{
				return this.m_EnableAddWhenHasChild;
			}
			set
			{
				this.m_EnableAddWhenHasChild = value;
			}
		}

		private bool m_EnableComment;
		/// <summary>
		/// 是否启用评论
		/// </summary>
		public bool EnableComment
		{
			get
			{
				return this.m_EnableComment;
			}
			set
			{
				this.m_EnableComment = value;
			}
		}

		private bool m_EnableTouristsComment;
		/// <summary>
		/// 是否允许游客评论
		/// </summary>
		public bool EnableTouristsComment
		{
			get
			{
				return this.m_EnableTouristsComment;
			}
			set
			{
				this.m_EnableTouristsComment = value;
			}
		}

		private bool m_CommentNeedCheck;
		/// <summary>
		/// 评论是否需要审核
		/// </summary>
		public bool CommentNeedCheck
		{
			get
			{
				return this.m_CommentNeedCheck;
			}
			set
			{
				this.m_CommentNeedCheck = value;
			}
		}

		private bool m_EnableValidCode;
		/// <summary>
		/// 是否启用评论验证码
		/// </summary>
		public bool EnableValidCode
		{
			get
			{
				return this.m_EnableValidCode;
			}
			set
			{
				this.m_EnableValidCode = value;
			}
		}

		private bool m_EnableProtect;
		/// <summary>
		/// 是否启用此栏目的防止复制、防盗链功能
		/// </summary>
		public bool EnableProtect
		{
			get
			{
				return this.m_EnableProtect;
			}
			set
			{
				this.m_EnableProtect = value;
			}
		}

	}
}
